//
//  NewsTitle.m
//  UI_19_JSON网易新闻
//
//  Created by li cheng on 16/8/9.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "NewsTitle.h"

@implementation NewsTitle
- (instancetype)initWithDic:(NSDictionary *)dic{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (NewsTitle *)newsTitleWithDic:(NSDictionary *)dic{
    return [[self alloc] initWithDic:dic];
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    if ([key isEqualToString:@"template"]){
        _news_template = value;
    }
}
@end
